#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
   char color[6][10]={"green","red","blue","pink","orange","black"},s[10];
   int n,i,j,k,max,maxnum;
   while(scanf("%d",&n)!=-1)
   {
   	 int num[6]={0};
   	 max=0;
   	 for(i=0;i<n;i++)
   	 {
   	 	scanf("%s",s);
   	 	for(j=0;j<6;j++)
   	 	{
		   if(strcmp(s,color[j])==0)
		   num[j]++;
	    }
	    for(k=0;k<6;k++)
   	    {
   	 	  if(num[k]>=max)
          {
          	max=num[k];
          	maxnum=k;
		  }
	    }
   	 }
     printf("%s\n",color[maxnum]);
   }
    return 0;
}